from Effect import EventEffectSet
import random
#################################################
EventCardNum = 1#

class card(object):
    def __init__(self):
        pass
    
class EventCard(card):
    def __init__(self,_id):
        self.ID = _id
        self.effect = EventEffectSet[_id]
    def work(self,GameEnv):
        self.effect.work(GameEnv)

class EventCardStack(object):
    def __init__(self):
        self.stack = []
        rd = random.sample(range(len(EventCardNum)),EventCardNum)
        for i in range(0,EventCardNum):
            card = EventCard(rd[i])
            self.stack.append(card)